package com.abhimanyu.service;

import net.webservicex.Currency;
import net.webservicex.CurrencyConvertor;

public class DollarRateObserver implements ICurrencyRateObserver {

	public String getCurrentDollarRate() {

		double value = new CurrencyConvertor().getCurrencyConvertorSoap()
				.conversionRate(Currency.USD, Currency.INR);
		return Double.valueOf(value).toString();
	}
	
	@Override
	public String toString() {
		return "Dollar exchange rate";
	}
}
